package vsqlbuilder.logic.sql;

import vsqlbuilder.logic.Column;

public class QueryColumn {

	private String alias;
	public Column data;


	public QueryColumn(Column data) {
		this.data = data;
		alias = null; // assume column have no alias
	}

	public String getAlias() {
		return this.alias;
	}

	public String getName() {
		return data.getName();
	}

	public String getTableName() {
		return data.getParentTable().getName();
	}

	public String getSchemaName() {
		return data.getParentTable().getSchemaName();
	}

	public void unselectQueryColumn() {
		this.data.setQuerySelected(false);
	}
}
